{% load djangobmf_forms %}
{% load i18n %}
<form class="form-horizontal" role="form" method="post"{% if form.is_multipart %} enctype="multipart/form-data"{% endif %} action="{{ request.path }}?{{ request.GET.urlencode }}">
  {% if form.non_field_errors %}
  <div class="alert alert-danger">
    <a class="close" data-dismiss="alert">&times;</a>
    {% for non_field_error in form.non_field_errors %}
      {{ non_field_error }}
    {% endfor %}
  </div>
  {% endif %}
  {% csrf_token %}
  {% for field in form %}
    {% if field.is_hidden %}
      <div class="hidden">{{ field }}</div>
    {% else %}
      {% bmflayout field %}
    {% endif %}
  {% endfor %}
  {% comment %}
  <div class="form-group">
    <div class="col-md-offset-3 col-lg-offset-2 col-md-9 col-lg-10">
      <button type="reset" class="btn btn-default">{% trans "Reset" %}</button>
      <button type="submit" class="btn btn-primary">{% trans "Save" %}</button>
    </div>
  </div>
  {% endcomment %}
</form>
